const path = require('path');
const express = require('express');

let app = express();

//构建
const ScoreRouter = express.Router();

//引入控制器
const ScoreController = require(path.join(__dirname,"../controllers/ScoreController"));

//班级列表页面
ScoreRouter.get('/scoreList',ScoreController.scoreList);

//班级添加页面
ScoreRouter.get('/scoreAdd',ScoreController.scoreAdd);

//班级添加post处理
ScoreRouter.post('/scoreAdd',ScoreController.scoreAddForm);

//班级编辑页面
ScoreRouter.get('/scoreEdit',ScoreController.scoreEdit);

//班级编辑post处理
ScoreRouter.post('/scoreEdit',ScoreController.scoreEditForm);

//班级删除
ScoreRouter.get('/scoreDelete',ScoreController.scoreDelete);

module.exports = ScoreRouter;